#{extends 'main.html' /}
#{set title:'Covami - Mon compte - Editer' /}

<h1>Editer mon compte</h1>

#{if flash.error}
    <p style="color:#c00">
        ${flash.error}
    </p>
#{/if}
 
<form action="@{Application.sauvegardermoncompte()}" method="POST">
	<label for="user.mail">E-mail</label>
    <input type="text" name="user.email" value="${user?.email}" />
    <label for="user.password">Mot de passe</label>
    <input type="password" name="user.password" value="${user?.password}" />
    <label for="user.nom">Nom</label>
    <input type="text" name="user.nom" value="${user?.nom}" />
    <label for="user.prenom">Prenom</label>
    <input type="text" name="user.prenom" value="${user?.prenom}" />
    <label for="user.telephoneMobile">T&eacute;l. Mobile</label>
    <input type="text" name="user.telephoneMobile" value="${user?.telephoneMobile}" />
    <label for="user.telephonePerso">T&eacute;l. Perso</label>
    <input type="text" name="user.telephonePerso" value="${user?.telephonePerso}" />
    <label for="user.dateNaissance">Date de naissance</label> 
    <input type="text" name="user.dateNaissance" value="${user?.dateNaissance}" />
    <label for="user.rue">Rue</label>
    <input type="text" name="user.rue" value="${user?.rue}" />
    <label for="user.cp">Code postal</label>
    <input type="text" name="user.cp" value="${user?.cp}" />
    <label for="user.ville">Ville</label>
    <input type="text" name="user.ville" value="${user?.ville}" />
    <label for="user.pays">Pays</label>
    <input type="text" name="user.pays" value="${user?.pays}" />
    <input type="submit" value="Sauvegarder" />
</form>
